package com.cms.service;

import java.util.List;
import java.util.Map;

import com.cms.domain.Data;
import com.cms.domain.Item;

public interface DataService {

	public Data getById(Long id);
	
	public Data getByIds(Long id_sbj,Long rowNum,Long id_item);
	
	public List<Data> getList(Long id_sbj);
	
	public List<Data> getList(Long id_sbj, int startIndex, int size);
	
	public List<Data> getRowList(Long id_sbj, Long rowNum);

	public void add(Data entity);

	public void update(Data entity);

	public void delete(Data entity);
	
	public Long getRowNumMax(Long id_sbj);
	
	public int getRowCount(Long id_sbj);

	public List<Map> getRowCountMap(Long id_sbj);
	
	public List<Map> getRowCountMap(Long id_sbj, Map<String, Item> item_map, Map<String, Object> params);
	
}
